package sanrenxing.kechenglx.domian;

/**
 * 功能：课程练习实体类
 * 编写者：蒋玲苹
 * 日期：20201014
 * 版本：1.0
 */
public class Course {
    //课程编号
    private int courseId;
    //课程名称
    private String courseName;

    /**
     * 空参构造方法
     */
    public Course() {
    }

    /**
     * 带参构造方法
     * @param courseId 课程id
     * @param courseName 课程名称
     */
    public Course(int courseId, String courseName) {
        this.courseId = courseId;
        this.courseName = courseName;
    }

    /**
     * 添加课程所用构造方法
     * @param courseName 课程名称
     */
    public Course(String courseName) {
        this.courseName = courseName;
    }

    //setter和getter方法
    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }
}
